<script lang="ts" setup>
import axios from 'axios';
import { get } from 'node_modules/axios/index.cjs';
import { onMounted, ref } from 'vue';


const name = ref('数据')
const getData = async () => {
  const data = await axios.get('http://hmajax.itheima.net/api/news')
  console.log(data);
}
onMounted(() => {
  getData()
}

)


</script>

<template>

</template>

<style scoped></style>